<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCustomerServiceTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('customer_service', function(Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id')->default(0)->comment('用户id');
            $table->integer('qrcode_img_id')->default(0)->comment('二维码id');
            $table->integer('photo_id')->default(0)->comment('头像');
            $table->tinyInteger('sex')->default(0)->comment('性别 0：未知 1：男 2：女');
            $table->string('nickname')->nullable()->comment('昵称');
            $table->string('phone')->nullable()->comment('手机号');
            $table->string('wechat')->nullable()->comment('微信号');
            $table->string('qq')->nullable()->comment('qq号');
            $table->timestamp('start_time')->nullable()->comment('工作开始时间');
            $table->timestamp('end_time')->nullable()->comment('工作结束时间');
            $table->string('desc')->nullable()->comment('描述');
            $table->integer('status')->default(0)->comment('状态 0：禁用 1：启用');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
